package com.example.nongye.http.exception;

import com.hjq.http.exception.HttpException;
import com.example.nongye.http.model.HttpListData;


/**
 * 业务接口错误
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2022/2/19 21:43
 */
public final class ResultException extends HttpException {

    private final HttpListData mData;

    public ResultException(String message, HttpListData data) {
        super(message);
        mData = data;
    }

    public ResultException(String message, Throwable cause, HttpListData data) {
        super(message, cause);
        mData = data;
    }

    public HttpListData getHttpData() {
        return mData;
    }
}